package com.example.aigc_education.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

public class ChapterDTO {

    private String chapter;

    private List<String> knowledgePointers;

    public ChapterDTO() {}

    public ChapterDTO(String chapter, List<String> knowledgePointers) {
        this.chapter = chapter;
        this.knowledgePointers = knowledgePointers;
    }

    public String getChapter() {
        return chapter;
    }

    public void setChapter(String chapter) {
        this.chapter = chapter;
    }

    public List<String> getKnowledgePointers() {
        return knowledgePointers;
    }

    public void setKnowledgePointers(List<String> knowledgePointers) {
        this.knowledgePointers = knowledgePointers;
    }

    @Override
    public String toString() {
        return "章节标题：" + chapter + "，知识点：" + knowledgePointers.toString() + "\n";
    }
}
